home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / CSMP Digests / csmp-v1-016.txt < prev    next >
Encoding:
Text File  |  1992-11-18  |  51.5 KB  |  1,494 lines  |  [TEXT/MPS ]

  1. C.S.M.P. Digest             Sat, 14 Mar 92       Volume 1 : Issue 16
  2.  
  3. Today's Topics:
  4.  
  5.     Sockets now avaiable
  6.     PowerOpen
  7.     C++ for the Mac
  8.     Sending FileSpecifications
  9.     ResEdit 2.1 Bundle Bit and Custom Icon Woes
  10.     getting Vrefnum without using StdGetFile
  11.     Location 0 (Was Re: Blinking box on my screen)
  12.     Think debugger BUG?
  13.     WARNING: Bug in THINK Pascal 4.0.1
  14.     FILE *'s and Mac files
  15.     MPW: deleting resource fork
  16.     Launching Applications
  17.     GetMenu returning wrong ID?
  18.     Resolving aliases for pref files etc
  19.     finding a publisher
  20.  
  21.  
  22. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  23.  
  24. These digests are available (by using FTP, account anonymous, your email
  25. address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
  26. edu (try skinner.cs.uoregon.edu if that doesn't work).  This is also the home
  27. of the comp.sys.mac.programmer Frequently Asked Questions list.
  28.  
  29. These digests are also available via email.  Just send a note saying that you
  30. want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
  31. automatically receive each new digest as it is created.
  32.  
  33. The articles in these digests are taken directly from comp.sys.mac.programmer.
  34. They are not edited; all articles included in this digest are in their original
  35. posted form.  The only articles that are -not- included in these digests are
  36. those which didn't receive any replies (except those that give information
  37. rather than ask a question).  All replies to each article are concatenated
  38. onto the original article in the order in which they were received.  Article
  39. threads are not added to the digests until the last article added to the
  40. thread is at least one month old (this is to ensure that the thread is dead
  41. before adding it to the digests).
  42.  
  43. Send administrative mail to mkelly@cs.uoregon.edu.
  44.  
  45. -------------------------------------------------------
  46.  
  47. From: creiman@ncsa.uiuc.edu (Charlie Reiman)
  48. Subject: Sockets now avaiable
  49. Organization: University of Illinois at Urbana
  50. Date: Wed, 12 Feb 1992 02:53:21 GMT
  51.  
  52. Brief announcement:
  53.  
  54. The Mac socket library is finally available from ftp.ncsa.uiuc.edu, the
  55. official NCSA ftp server. It is in the directory /misc/unsupported.
  56. Please take special note of the location. It is _not_ in the /Mac
  57. subdirectory! Also, it is in _unsupported_, because it is definately
  58. unsupported.
  59.  
  60. For the newcomers:
  61.  
  62. This is a library for MPW 3.2, witten in C, that is designed to emulate
  63. most of the functionality of BSD sockets with regard to TCP/IP
  64. communications. Please note it will not allow you to develop anything
  65. if you do not have a copy of APDA's MacTCP toolkit.  Also note I do not
  66. have a THINK C version. If someone ports it over to THINK, please drop
  67. me a line as to exactly what changes you needed to make so I can
  68. include a note in the README of future versions.
  69.  
  70. This is the February '92 release. It is the first one in a long time
  71. to make an attempt at UDP support.
  72.  
  73. Have at it, folks.
  74.  
  75. Server: ftp.ncsa.uiuc.edu (141.142.20.50)
  76. File: /misc/unsupported/Socket.sit.hqx
  77. Author: creiman@ncsa.uiuc.edu
  78. -- 
  79. Charlie Reiman - creiman@ncsa.uiuc.edu
  80. Submissions to RHF: 3
  81. Times published in RHF: 4
  82.  
  83.  
  84.  
  85. ---------------------------
  86.  
  87. From: gmarzot@mitre.org (G. S. Marzot (Joe))
  88. Subject: PowerOpen
  89. Date: 30 Jan 92 16:49:24 GMT
  90. Organization: The MITRE Corporation
  91.  
  92. This may be a little early to ask, but I have been reading articles that 
  93. talk about a forum for people interested in PowerOpen, the new Apple/IBM 
  94. OS for the RISC based PowerPC. Is there any info out there...possibly who 
  95. at Apple should be contacted Thanks for any Info
  96. -GSM
  97.  
  98.  
  99. Email: gmarzot@linus.mitre.org
  100.  
  101. (standard  disclaimer)
  102.  
  103.  
  104.  
  105. - -------------------------
  106.  
  107. From: ksand@apple.com (Kent Sandvik)
  108. Subject:  PowerOpen
  109. Date: 2 Feb 92 23:39:23 GMT
  110. Organization: MacDTS Mongols
  111.  
  112. In article <1992Jan30.164924.7764@linus.mitre.org>, gmarzot@mitre.org (G. S. Marzot (Joe)) writes:
  113. > This may be a little early to ask, but I have been reading articles that 
  114. > talk about a forum for people interested in PowerOpen, the new Apple/IBM 
  115. > OS for the RISC based PowerPC. Is there any info out there...possibly who 
  116. > at Apple should be contacted Thanks for any Info
  117. > -GSM
  118.  
  119. Latest Byte had a story about the IBM/Apple alliance, including PowerOpen.
  120. As for more information, I'm sure the trade press, especially the UNIX one,
  121. will provide both real information and rumor mill stuff.
  122.  
  123. Kent Sandvik
  124. - ----------
  125. (create-a-.signature-please)
  126.  
  127.  
  128.  
  129. - -------------------------
  130.  
  131. From: gmarzot@mitre.org (G. S. Marzot (Joe))
  132. Subject:  PowerOpen
  133. Date: 4 Feb 92 13:33:27 GMT
  134. Organization: The MITRE Corporation
  135.  
  136. In article <19794@goofy.Apple.COM> ksand@apple.com (Kent Sandvik) writes:
  137. > In article <1992Jan30.164924.7764@linus.mitre.org>, gmarzot@mitre.org 
  138. (G. S. Marzot (Joe)) writes:
  139. > > 
  140. > > This may be a little early to ask, but I have been reading articles 
  141. that 
  142. > > talk about a forum for people interested in PowerOpen, the new 
  143. Apple/IBM 
  144. > > OS for the RISC based PowerPC. Is there any info out there...possibly 
  145. who 
  146. > > at Apple should be contacted Thanks for any Info
  147. > > -GSM
  148. > Latest Byte had a story about the IBM/Apple alliance, including 
  149. PowerOpen.
  150. > As for more information, I'm sure the trade press, especially the UNIX 
  151. one,
  152. > will provide both real information and rumor mill stuff.
  153.  
  154. This does not sound like a very open policy for Apple to have budding 
  155. developers seek information in the form of rumors.  I thought the whole 
  156. point of this new OS was to be open, you know like Power - OPEN. Isn't 
  157. there a more direct channel for info. How does OSF/1 fit in? I thought I 
  158. remembered hearing something about a developer program for PowerOpen. 
  159. Thanks you for any more concrete information. - GSM
  160.  
  161.  
  162. Email: gmarzot@linus.mitre.org
  163.  
  164. (standard  disclaimer)
  165.  
  166.  
  167.  
  168. - -------------------------
  169.  
  170. From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher)
  171. Subject:  PowerOpen
  172. Organization: Integrated Systems Laboratory, ETH, Zurich
  173. Date: 6 Feb 92 19:41:08
  174.  
  175. In article <1992Feb4.133327.8680@linus.mitre.org> gmarzot@mitre.org (G. S. Marzot (Joe)) writes:
  176. >This does not sound like a very open policy for Apple to have budding 
  177. >developers seek information in the form of rumors.  I thought the whole 
  178. >point of this new OS was to be open, you know like Power - OPEN.
  179.  
  180. You don't want to be locked into Open operating systems anyway :-)
  181.  
  182. >How does OSF/1 fit in?
  183.  
  184. Good question. Does OSF fit in anywhere ? I remember being at a HP press
  185. conference in Switzerland where it was announced, but that was like 5 years
  186. ago. OSF/1 seems to be shipping, but I haven't seen any company betting its
  187. future on it yet. But maybe I'm misunderstanding the OSF's motives, anyway.
  188.  
  189. Matthias
  190.  
  191. - ---
  192. Matthias Neeracher                                   neeri@iis.ethz.ch
  193.   "... Rice walked out wondering if the world was nothing but wimps,
  194.    pimps, psychos and sex fiends" -- James Ellroy, _Suicide Hill_
  195.  
  196.  
  197.  
  198. - -------------------------
  199.  
  200. From: Thad.Humphries@p950.f70.n109.z1.FidoNet.Org (Thad Humphries)
  201. Subject:  PowerOpen
  202. Date: 07 Feb 92  06:26:59 EST
  203.  
  204.  MU> From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher)
  205.  MU> Newsgroups: comp.sys.mac.programmer
  206.  MU> Organization: Integrated Systems Laboratory, ETH, Zurich
  207.  MU> Reply-To: gmarzot@mitre.org's message of 4 Feb 92 13:33:27 GMT
  208. ... 
  209.  MU> >How does OSF/1 fit in?
  210.  MU> 
  211.  MU> Good question. Does OSF fit in anywhere ? 
  212.  
  213. Are we talking about the Open Software Foundation?  If so, their claim to fame in my eye is as the sponsors of OSF/MOTIF, the most popular window manager and widget set for X Windows.  That may change, though:  AT&T and SUN, who sponsor OPEN LOOK, have decided to bundle XView (an OPEN LOOK compliant widget set) with all UNIX V R.4.
  214.  
  215. At least I hope -- my boss is shelling out lots for SUN SPARCstations and schooling for us hacks.
  216.  
  217. Besides, MOTIF looks too much like Windows -- reason enough for me to hate it but likely to stay commercially popular.
  218.  
  219. If only I could get XView libraries on a Mac at a reasonable price...
  220.  * Origin: Quis custodiet ipsos custodes? (1:109/70.950)
  221.  
  222.  
  223.  
  224. - -------------------------
  225.  
  226. From: tmaehl@vax1.umkc.edu
  227. Subject:  PowerOpen
  228. Date: 11 Feb 92 08:03:36 GMT
  229. Organization: University of Missouri Computing Services
  230.  
  231. > Good question. Does OSF fit in anywhere ? I remember being at a HP press
  232. > conference in Switzerland where it was announced, but that was like 5 years
  233. > ago. OSF/1 seems to be shipping, but I haven't seen any company betting its
  234. > future on it yet. But maybe I'm misunderstanding the OSF's motives, anyway.
  235.  
  236. Digital at least seems to be putting all its eggs into OSF/1.  They are
  237. now shipping OSF/1 on their unix platforms, they are supplying the same
  238. code to be the basis of SCO's unix for ACE compliant platforms, and have
  239. ported it to their unreleased "Alpha" platforms (100-200MHz risc chips).
  240.  
  241. As for POWER/Open, as I understand it IBM is supposed to base AIX
  242. on OSF/1, and hence POWER/Open will be (at some level?) OSF/1
  243. compatible.  OSF/1 requires the Motif interface, which will I believe,
  244. be supported along with the Apple UI on POWER/Open.
  245.  
  246. Jonathan/tmaehl@vax1.umkc.edu
  247.  
  248.  
  249.  
  250. ---------------------------
  251.  
  252. From: bruss@beowulf.ucsd.edu (Brian Russ)
  253. Subject: C++ for the Mac
  254. Date: 4 Feb 92 03:14:48 GMT
  255. Organization: CSE Dept., UC San Diego
  256.  
  257.  
  258.  
  259. - -------------------------
  260.  
  261.  
  262.                     Brian
  263. -- 
  264. Brian Russ
  265. CSE Department, UC San Diego
  266. ..!sdcsvax!bruss
  267.  
  268.  
  269.  
  270. - -------------------------
  271.  
  272. From: alana@dogmatix.cs.uoregon.edu (Thomas Alan Akins)
  273. Subject:  C++ for the Mac
  274. Organization: University of Oregon Computer and Information Sciences Dept.
  275. Date: Tue, 4 Feb 1992 19:59:05 GMT
  276.  
  277. In article <28167@sdcc12.ucsd.edu> bruss@beowulf.ucsd.edu (Brian Russ) writes:
  278. >
  279. >    From what I've gathered, if I want to program in C++ on the Mac,
  280. >I want to get MPW.  The question is, I can't find it anywhere.
  281.  
  282. >Where might one find it?
  283. >
  284. >                    Brian
  285.  
  286.  
  287. I believe you can purchase it from the Apple Product Developer's Associtation.
  288. Information and current price lists are available from ftp.apple.com.
  289. -- 
  290. *                                            Alan Akins                      *
  291. *       "I could say 'addition'              alana@cs.uoregon.edu            *
  292. *        when I mean ... 'basketball.'"      University of Oregon            *
  293. *                        - E. Tick           Department of Computer Science  *
  294.  
  295.  
  296.  
  297. - -------------------------
  298.  
  299. From: rickf@Apple.COM (Rick Fleischman)
  300. Subject:  C++ for the Mac
  301. Date: 6 Feb 92 18:11:59 GMT
  302. Organization: Apple Computer Inc., Cupertino, CA
  303.  
  304. In article <28167@sdcc12.ucsd.edu> bruss@beowulf.ucsd.edu (Brian Russ) writes:
  305. >
  306. >    From what I've gathered, if I want to program in C++ on the Mac,
  307. >I want to get MPW.  The question is, I can't find it anywhere.  
  308. >I've looked over the various mail-order places in MacWorld and MacUser
  309. >(Mac Zone, Mac Connection, others) and there is absolutely no mention
  310. >of MPW (or any other C++) at all.  Is there a reason for this? 
  311. >Where might one find it?
  312. >
  313. >                    Brian
  314. >-- 
  315. >Brian Russ
  316. >CSE Department, UC San Diego
  317. >..!sdcsvax!bruss
  318.  
  319. MPW and C++, as well as all other Apple-published development tools are
  320. available through APDA, Apple's mail order channel for development tools and
  321. technical documentation.
  322.  
  323. You can reach APDA at:
  324. (800) 282-2732 (in the U.S.)
  325. (800) 637-0029 (in Canada)
  326. (408) 562-3910 (International)
  327.  
  328. via the mail at:
  329. APDA
  330. Apple Computer, Inc.
  331. 20525 Mariani Avenue, M/S 33-G
  332. Cupertino, CA  95014
  333.  
  334. or via e-mail at:
  335. APDA@applelink.apple.com
  336.  
  337. They will send you a free APDA Tools Catalog.
  338.  
  339. Rick Fleischman
  340. MPW Product Manager
  341. Apple Computer, Inc.
  342. e-mail: rickf@apple.com
  343. AppleLink: FLEISCHMAN@applelink.apple.com
  344.  
  345.  
  346.  
  347. - -------------------------
  348.  
  349. From: lee@wang.com (Lee Story)
  350. Subject:  C++ for the Mac
  351. Date: 13 Feb 92 23:10:03 GMT
  352. Organization: Wang Laboratories, Inc.
  353.  
  354. In article <1992Feb4.195905.12992@cs.uoregon.edu> alana@dogmatix.cs.uoregon.edu (Thomas Alan Akins) writes:
  355.  
  356.    Path: wang!uunet!uunet!elroy.jpl.nasa.gov!swrinde!mips!cs.uoregon.edu!dogmatix.cs.uoregon.edu!alana
  357.    From: alana@dogmatix.cs.uoregon.edu (Thomas Alan Akins)
  358.    Newsgroups: comp.sys.mac.programmer
  359.    Date: 4 Feb 92 19:59:05 GMT
  360.    References: <28167@sdcc12.ucsd.edu>
  361.    Sender: news@cs.uoregon.edu (Netnews Owner)
  362.    Organization: University of Oregon Computer and Information Sciences Dept.
  363.    Lines: 17
  364.  
  365.    In article <28167@sdcc12.ucsd.edu> bruss@beowulf.ucsd.edu (Brian Russ) writes:
  366.    >
  367.    >    From what I've gathered, if I want to program in C++ on the Mac,
  368.    >I want to get MPW.  The question is, I can't find it anywhere.
  369.  
  370.    >Where might one find it?
  371.    >
  372.    >                    Brian
  373.  
  374.  
  375.  I believe you can purchase it from the Apple Product Developer's Associtation.
  376.  Information and current price lists are available from ftp.apple.com.
  377.  
  378. Call APDA at 1-800-282-2732 for ordering info.  I believe MPW plus C++
  379. is in the $300 to $400 range.  (don't have my catalog here)
  380.  
  381. --
  382.  
  383. - ----------------------------------------------------------------------
  384.   Lee Story (lee@wang.com) Wang Laboratories, Inc.
  385.      (Boston and New Hampshire AMC, and Merrimack Valley Paddlers)
  386. - ----------------------------------------------------------------------
  387.  
  388.  
  389.  
  390. ---------------------------
  391.  
  392. From: ollef@sics.se (Olle Furberg)
  393. Subject: Sending FileSpecifications
  394. Date: 2 Feb 92 19:20:57 GMT
  395. Organization: Satellite Image in Kiruna Corporation
  396.  
  397.  
  398.  
  399. I'm constructing a program which will work as a background only 
  400. subprocess and managed by another program, hereafter called "master
  401. program", through IAC (interapplication communication). The program 
  402. will be launched by the master (through the process manager, or Finder
  403. events if they are on different machines).
  404.  
  405. The master program will send a highlevel event to my program together
  406. with a reference to a file which my program will have to open, do some
  407. work, and then return the result to the master (through IAC).
  408.  
  409.  
  410. My main concern is what sort of file specification I should use. If
  411. both programs are running on the same computer, a FSSpec will do the
  412. job. But, what if the two programs is not running on the same Mac?
  413.  
  414. If the master sends an Alias to my process on the other Mac, will it be
  415. able to resolve this alias (created on another machine) and try to mount
  416. the other Mac's volume through filesharing?
  417.  
  418.  
  419.     /Olle
  420.  
  421. - ----------------------------------------------------------
  422. Olle Furberg                       Internet: ollef@sics.se
  423. Satellitbild in Kiruna             Phone: +46 980 121 40
  424. Swedish Space Corporation          Fax:   +46 980 160 44
  425.                                    Home:  +46 980 801 95
  426.  
  427.  
  428.  
  429. - -------------------------
  430.  
  431. From: grobbins@Apple.COM (Grobbins)
  432. Subject:  Sending FileSpecifications
  433. Date: 7 Feb 92 06:13:47 GMT
  434. Organization: Apple DTS
  435.  
  436. In article <1992Feb2.192057.29723@sics.se> ollef@sics.se (Olle Furberg) writes:
  437. >The master program will send a highlevel event to my program together
  438. >with a reference to a file which my program will have to open, do some
  439. >work, and then return the result to the master (through IAC).
  440. >...
  441. >If the master sends an Alias to my process on the other Mac, will it be
  442. >able to resolve this alias (created on another machine) and try to mount
  443. >the other Mac's volume through filesharing?
  444.  
  445. Yep, that's the ticket.  Full alias records can be handed off to any other
  446. Mac on the network.  As Inside Mac VI says on page 27-4,
  447.  
  448.   An alias record is a reliable way to identify a file system object
  449.   when your application is communicating with a process that might be
  450.   running on a different machine.
  451.  
  452. Because your server app is a faceless background puppy, you will have
  453. to make certain that it does not bring up the user validation dialog
  454. when mounting a remote volume.  Call GetAliasInfo if you want to see
  455. where the alias points to, and use MatchAlias rather than ResolveAlias
  456. to get full control of the alias resolution.
  457.  
  458.  
  459. Grobbins        grobbins@apple.com
  460.  
  461. Usual disclaimers apply.
  462.  
  463.  
  464.  
  465.  
  466. - -------------------------
  467.  
  468. From: smoke@well.sf.ca.us (Nicholas Jackiw)
  469. Subject:  Sending FileSpecifications
  470. Date: 10 Feb 92 19:49:13 GMT
  471. Organization: Whole Earth 'Lectronic Link, Sausalito, CA
  472.  
  473. In article <1992Feb2.192057.29723@sics.se> ollef@sics.se (Olle Furberg) writes:
  474. >The master program will send a highlevel event to my program together
  475. >with a reference to a file which my program will have to open, do some
  476. >work, and then return the result to the master (through IAC).
  477. >
  478. >My main concern is what sort of file specification I should use. If
  479. >both programs are running on the same computer, a FSSpec will do the
  480. >job. But, what if the two programs is not running on the same Mac?
  481. >
  482. >If the master sends an Alias to my process on the other Mac, will it be
  483. >able to resolve this alias (created on another machine) and try to mount
  484. >the other Mac's volume through filesharing?
  485.  
  486. Yes.  I use exactly this scheme.  You can even have the Apple Event
  487. manager coerce the sent alias into an FSSpec for you.  However, recall
  488. that logging onto a fileshared volume requires user interaction, even
  489. if no password (Guest privileges) are enabled.  If there's no user there,
  490. your remote mac will freeze at the password stage unless you have already
  491. explicitly mounted the shared folder on it.  As of the present time,
  492. there's no work around for this (allegedly, there's an init on one of
  493. the developer cds, but no Official Workaround).  
  494.  
  495.  
  496.  
  497. -- 
  498.                               --- * ---
  499. Nick Jackiw                  Smoke@well.sf.ca.us   | Jackiw@cs.swarthmore.edu
  500. Key Curriculum Press, Inc.   Applelink:KEY.EDUSOFT | (415) 548-2304
  501.                               --- * ---
  502.  
  503.  
  504.  
  505. - -------------------------
  506.  
  507. From: lai@Apple.COM (Ed Lai)
  508. Subject:  Sending FileSpecifications
  509. Date: 11 Feb 92 00:15:02 GMT
  510. Organization: Apple Computer Inc., Cupertino, CA
  511.  
  512. In article <29934@well.sf.ca.us> smoke@well.sf.ca.us (Nicholas Jackiw) writes:
  513. >Yes.  I use exactly this scheme.  You can even have the Apple Event
  514. >manager coerce the sent alias into an FSSpec for you.  However, recall
  515. >that logging onto a fileshared volume requires user interaction, even
  516. >if no password (Guest privileges) are enabled.  If there's no user there,
  517. >your remote mac will freeze at the password stage unless you have already
  518. >explicitly mounted the shared folder on it.  As of the present time,
  519. >there's no work around for this (allegedly, there's an init on one of
  520. >the developer cds, but no Official Workaround).  
  521. >
  522. >
  523.  
  524. This is not true. If you have the Apple Event manager coerce the alias to
  525. fss for you using the built-in coercion handler, then if you specify no
  526. user-interaction (the default when you send it to a remote machine) in
  527. your Apple Event, it would not try to interact and it would just return
  528. an error.
  529.  
  530. /* Disclaimer: All statments and opinions expressed are my own */
  531. /* Edmund K. Lai                                               */
  532. /* Apple Computer, MS37-UP                                     */
  533. /* 20525 Mariani Ave,                                          */
  534. /* Cupertino, CA 95014                                         */
  535. /* (408)974-6272                                               */
  536. zW@h9cOi
  537.  
  538.  
  539.  
  540. - -------------------------
  541.  
  542. From: smoke@well.sf.ca.us (Nicholas Jackiw)
  543. Subject:  Sending FileSpecifications
  544. Date: 13 Feb 92 21:55:25 GMT
  545. Organization: Whole Earth 'Lectronic Link, Sausalito, CA
  546.  
  547. In article <62662@apple.Apple.COM> lai@Apple.COM (Ed Lai) writes:
  548. >In article <29934@well.sf.ca.us> smoke@well.sf.ca.us (Nicholas Jackiw) writes:
  549. >>
  550. [...]
  551.  
  552. >>If there's no user there,
  553. >>your remote mac will freeze at the password stage unless you have already
  554. >>explicitly mounted the shared folder on it.  As of the present time,
  555. >>there's no work around for this (allegedly, there's an init on one of
  556. >>the developer cds, but no Official Workaround).  
  557. >This is not true. If you have the Apple Event manager coerce the alias to
  558. >fss for you using the built-in coercion handler, then if you specify no
  559. >user-interaction (the default when you send it to a remote machine) in
  560. >your Apple Event, it would not try to interact and it would just return
  561. >an error.
  562. >/* Edmund K. Lai                                               */
  563.  
  564. You're correct, of course, if userInteraction is turned off. If, on
  565. the other hand, you assume that the reason Mac A is sending Mac B
  566. a filespec is so that Mac B can actually *do* something with or to
  567. the file, then what I said remains: there's no way you can get to the
  568. file without either previously mounting the shared volume or having
  569. a user there to click on the "guest" button.
  570.  
  571. Returned errors are nice compared to crashes, but they're still a far
  572. cry from useful results.
  573.  
  574.  
  575.  
  576. -- 
  577.                               --- * ---
  578. Nick Jackiw                  Smoke@well.sf.ca.us   | Jackiw@cs.swarthmore.edu
  579. Key Curriculum Press, Inc.   Applelink:KEY.EDUSOFT | (415) 548-2304
  580.                               --- * ---
  581.  
  582.  
  583.  
  584. ---------------------------
  585.  
  586. From: leue@galen.crd.ge.com (Bill Leue)
  587. Subject: ResEdit 2.1 Bundle Bit and Custom Icon Woes
  588. Date: 10 Feb 92 14:40:13 GMT
  589. Organization: General Electric Research & Development
  590.  
  591. Has anyone else had the kind of problems I am having with ResEdit 2.1, trying
  592. to create a custom icon for an application?  Here's a brief summary:
  593.  
  594. 1. I create the 'ICN#' resource, ID 128, with all the various icons.
  595. 2. Create the 'BNDL' resource, ID 128, owner ID 'BILL', with one entry,
  596. 'APPL', which points to my 'ICN#' resource.  The icons show up in the entry,
  597. just as they should.
  598. 3. I set the creator type of the application to 'BILL', the same as the owner
  599. line in the 'BNDL' resource.
  600.  
  601. Checking the other resources, it appears that ResEdit has created the other
  602. resources such as 'FREF' and the Local ID's ok.
  603.  
  604. I re-link the application and add the new resource file.  (Did I mention that
  605. I'm using Think C 5.0?)  Then I rebuild the desktop.
  606.  
  607. Hmmm..... No custom icon, just the generic 'hand' icon.  Checking the desktop
  608. files with ResEdit reveals that my custom icons have not been added.  When
  609. I go back into the application's resource file with ResEdit, someone has 
  610. changed my 'APPL' entry in the 'BNDL' resource back into '????'.  Arggghhh!
  611.  
  612. I've gone through this cycle (and variations) a number of times, but to no
  613. avail.  I found out that if I add a second (dummy) line to 'BNDL', it seems
  614. to make it less likely that my 'APPL' entry will get changed back to '????',
  615. but this doesn't by itself help to get the custom icon to appear.
  616.  
  617. Any guesses?  This is happening using System 7.0 (with tune-up) on a 5 meg
  618. IIcx.
  619.  
  620. Thanks!
  621.  
  622. -Bill Leue
  623. leue@crd.ge.com
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631. - -------------------------
  632.  
  633. Subject:  ResEdit 2.1 Bundle Bit and Custom Icon Woes
  634. From: russells@ccu1.aukuni.ac.nz (Russell Street)
  635. Date: Mon, 10 Feb 1992 19:23:37 GMT
  636. Organization: University of Auckland, New Zealand.
  637.  
  638. leue@galen.crd.ge.com (Bill Leue) writes:
  639.  
  640. >Has anyone else had the kind of problems I am having with ResEdit 2.1, trying
  641. >to create a custom icon for an application?  Here's a brief summary:
  642.  
  643.  
  644.  
  645. I believe it is a bug in ResEdit -- it does NOT WRITE OUT THE FREF RESOURCES
  646. WHEN YOU CHANGE THEM IN A BNDL.  It drove me nuts figuring this
  647. one out.
  648.  
  649. The only way around this is to go and change the FREFs manually to
  650. get them "changed" and written out.
  651.  
  652. If you look at the FREF resources when while the file is still open
  653. the appear changed, but if you close and reopen the file they will be
  654. the old values.
  655.  
  656. Curses and naughty words!  
  657. - ------------------------------------------------------------
  658. Russell Street (russells@ccu1.aukuni.ac.nz)
  659.     It was the least I could do -- a quantity I specialize in.
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666. - -------------------------
  667.  
  668. Subject:  ResEdit 2.1 Bundle Bit and Custom Icon Woes
  669. From: stanger@otago.ac.nz (Nigel Stanger)
  670. Date: 11 Feb 92 13:57:15 +1300
  671. Organization: University of Otago, Dunedin, New Zealand
  672.  
  673. In article <27199@crdgw1.crd.ge.com>, 
  674. leue@galen.crd.ge.com (Bill Leue) writes:
  675. > Has anyone else had the kind of problems I am having with ResEdit 2.1, trying
  676. > to create a custom icon for an application?  Here's a brief summary:
  677. > 1. I create the 'ICN#' resource, ID 128, with all the various icons.
  678. > 2. Create the 'BNDL' resource, ID 128, owner ID 'BILL', with one entry,
  679. > 'APPL', which points to my 'ICN#' resource.  The icons show up in the entry,
  680. > just as they should.
  681. > 3. I set the creator type of the application to 'BILL', the same as the owner
  682. > line in the 'BNDL' resource.
  683. [...]
  684. > Hmmm..... No custom icon, just the generic 'hand' icon.  Checking the desktop
  685. > files with ResEdit reveals that my custom icons have not been added.  When
  686. > I go back into the application's resource file with ResEdit, someone has 
  687. > changed my 'APPL' entry in the 'BNDL' resource back into '????'.  Arggghhh!
  688.  
  689. You could try editing the BNDL resource with the BNDL template
  690. rather than the BNDL editor (i.e. choose "Open using template..."
  691. from the Resource menu). It's not as nice to use, but when I had
  692. similar problems with the BNDL editor I did this and it worked,
  693. so maybe it will for you too.
  694.  
  695. -- 
  696. See ya
  697.                                 Nigel.
  698. - --------------------------------------------------------------------
  699. Nigel Stanger,                  Internet: stanger@otago.ac.nz
  700. University of Otago,            Phone: +64 3 479-8179
  701. Dunedin, NEW ZEALAND.           Fax:   +64 3 479-8311
  702. "ACK! Pthptttt!" -- Bill the Cat, "Bloom County"
  703.  
  704.  
  705.  
  706. - -------------------------
  707.  
  708. From: matth@oakhill.sps.mot.com (Matthew Holle)
  709. Subject:  ResEdit 2.1 Bundle Bit and Custom Icon Woes
  710. Organization: Motorola Inc., Austin, Texas
  711. Date: Tue, 11 Feb 1992 15:06:14 GMT
  712.  
  713. In article <1992Feb10.192337.1708@ccu1.aukuni.ac.nz> russells@ccu1.aukuni.ac.nz (Russell Street) writes:
  714. >leue@galen.crd.ge.com (Bill Leue) writes:
  715. >
  716. >>Has anyone else had the kind of problems I am having with ResEdit 2.1, trying
  717. >>to create a custom icon for an application?  Here's a brief summary:
  718. >
  719. >
  720. >
  721. >I believe it is a bug in ResEdit -- it does NOT WRITE OUT THE FREF RESOURCES
  722. >WHEN YOU CHANGE THEM IN A BNDL.  It drove me nuts figuring this
  723. >one out.
  724. >
  725. >The only way around this is to go and change the FREFs manually to
  726. >get them "changed" and written out.
  727. >
  728. >If you look at the FREF resources when while the file is still open
  729. >the appear changed, but if you close and reopen the file they will be
  730. >the old values.
  731. >
  732. >Curses and naughty words!  
  733. >--------------------------------------------------------------
  734. >Russell Street (russells@ccu1.aukuni.ac.nz)
  735. >    It was the least I could do -- a quantity I specialize in.
  736.  
  737. Actually, I think another problem may be to blame.  Here's the method
  738. I use to give my applications their own custom icons.
  739.  
  740. 1. Use resedit to build an ICN# resource, then build the BNDL resource.
  741.    At this point, when you input the Signature in the BNDL resource,
  742.    you should see the icons appear in the window (ResEdit 2.1.1).
  743.  
  744. 2. Here's where I think Bill Leue was having problems.  You need to go
  745.    into Think C (version whatever) and do a "Set Project Type..." under
  746.    the Project menu.  Set the project to be of type application, file type
  747.    to be "APPL" and signature to the same signature you used in the BNDL
  748.    resource in step one.
  749.  
  750. 3. Recompile and rebuild the desktop and you should see an icon.  I think
  751.    Think C will overwrite the BNDL resource with the preferences you set
  752.    up in the "Set Project Type..." menu (setting the signature back to
  753.    "????".
  754.  
  755. # include <std_disclaimer.h>
  756.  
  757.  -----------------------------------------------------------------------
  758. |       Matt Holle                      Motorola Microprocessor         |
  759. |       RISC Applications               & Memory Technology Group       |
  760. |       (matth@oakhill.sps.mot.com)     Austin, TX                      |
  761.  -----------------------------------------------------------------------
  762.  
  763.  
  764.  
  765.  
  766. ---------------------------
  767.  
  768. From: jxs18@po.CWRU.Edu (Jerry Sy)
  769. Subject: getting Vrefnum without using StdGetFile
  770. Organization: Case Western Reserve University, Cleveland, OH (USA)
  771. Date: Mon, 10 Feb 92 17:15:11 GMT
  772.  
  773.  
  774. I want to create a file (or open a file) that I know the file name
  775. and where it is located.  How can I get the vrefnum for that file
  776. without using the StdGetFile dialog box ?
  777.  
  778. jerry
  779.  
  780.  
  781.  
  782.  
  783. - -------------------------
  784.  
  785. From: keith@Apple.COM (Keith Rollin)
  786. Subject:  getting Vrefnum without using StdGetFile
  787. Date: 14 Feb 92 02:15:08 GMT
  788. Organization: Apple Computer Inc., Cupertino, CA
  789.  
  790. In article <1992Feb10.171511.8200@usenet.ins.cwru.edu> jxs18@po.CWRU.Edu (Jerry Sy) writes:
  791. >
  792. >I want to create a file (or open a file) that I know the file name
  793. >and where it is located.  How can I get the vrefnum for that file
  794. >without using the StdGetFile dialog box ?
  795.  
  796. If you know where the file is, but don't know the vRefNum of the volume
  797. it's on, then presumably you know the name of the volume and the dirID
  798. of the directory the file is in. What you need to do is find the
  799. vRefNum for the volume with the name you have. Most people use
  800. PBGetVInfo with a negative ioVolIndex for this (I think that's the
  801. trick).
  802.  
  803. -- 
  804. - ----------------------------------------------------------------------------
  805. Keith Rollin           ---            <Taligent .signature under construction>
  806. Disclaimer: Pretty soon, I really _won't_ be speaking for Apple...
  807.  
  808.  
  809.  
  810. ---------------------------
  811.  
  812. From: ABSURD@applelink.apple.com (Tim Dierks, ToyMeister, Cray abuser)
  813. Subject: Location 0 (Was Re: Blinking box on my screen)
  814. Date: 10 Feb 92 21:43:06 GMT
  815. Organization: MacDTS, Apple Computer
  816.  
  817. In article <1992Feb7.184427.10307@cs.ucla.edu>, david@oahu.cs.ucla.edu (David Dantowitz) writes:
  818. > p.s. is it still valid to set memory location 0 to 'NIL!' to trap
  819. > invalid defs?
  820.  
  821.   Yes, but there are better values.  Try $50FFC037.  This does several things:
  822. 1) It's odd, so accesses to it fail on 68000 machines
  823. 2) It will cause a bus error on all current Macs with bus error hardware
  824. 3) It's an invalid instruction, so jumping to 0 will die immediately.
  825.  
  826.   Note that under System 7, the toolbox will change location 0 to point it
  827. into ROM.  This is done because some applications are improperly written, and
  828. dereference location 0.  It was decided that it would be best for this fault,
  829. taken alone, not to crash applications on a users system.  For best results,
  830. install Even Better Bus Error on your development and testing machines;
  831. it will catch 95% of such problems.
  832.  
  833. Tim Dierks
  834. MacDTS, but I speak for myself
  835.  
  836.  
  837.  
  838. - -------------------------
  839.  
  840. From: creiman@ncsa.uiuc.edu (Charlie Reiman)
  841. Subject:  Location 0 (Was Re: Blinking box on my screen)
  842. Organization: University of Illinois at Urbana
  843. Date: Tue, 11 Feb 1992 18:22:29 GMT
  844.  
  845. ABSURD@applelink.apple.com (Tim Dierks, ToyMeister, Cray abuser) writes:
  846. : In article <1992Feb7.184427.10307@cs.ucla.edu>, david@oahu.cs.ucla.edu (David Dantowitz) writes:
  847.  < stuff deleted>
  848. :   Note that under System 7, the toolbox will change location 0 to point it
  849. : into ROM.  This is done because some applications are improperly written, and
  850.  
  851. Actually, I found this to be only half true. Near as I can figure it,
  852. System 7 reads in the value from 0 some time after boot up, remembers
  853. it, then periodically writes it back there.
  854.  
  855. Under "clean" system 7, that value somehow, magically, gets set to
  856. ROMbase+64k (as you probably know) during init time. This is read in
  857. after init time then later written back on a periodic basis.
  858.  
  859. The trick comes when you run EBBE. It initializes 0 to $50FF8001 at
  860. init time. System 7 reads this in, then writes it back periodically.
  861. EBBE does not need to continually write that value back to 0, system 7
  862. will gleefully do so on its own.
  863.  
  864. In case your wondering how the hell I figured all this out: I wrote my
  865. own version of EBBE that I could switch on or off without rebooting.
  866. Seemed like a great idea to me, except System 7 insisted on overwitting
  867. the value I wanted in 0 with whatever happened to be there during
  868. system startup.
  869.  
  870. A few experiments with Macsbugs' 'SS 0' and StopINIT should prove 
  871. enlightening to the curious.
  872.  
  873. -- 
  874. Charlie Reiman - creiman@ncsa.uiuc.edu
  875. Submissions to RHF: 3
  876. Times published in RHF: 4
  877.  
  878.  
  879.  
  880. ---------------------------
  881.  
  882. From: pittenger-laurence@CS.YALE.EDU (Laurence Arthur Pittenger)
  883. Subject: Think debugger BUG?
  884. Date: 10 Feb 92 22:17:50 GMT
  885. Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
  886.  
  887. Think C version: 5.0.2
  888. System version: 7.0 +
  889. Machine: Mac IIci
  890.  
  891. Usually when something screws up the debugger I assume it's the fault
  892. of my code.  However I can't find the bug anywhere (which usually
  893. means it's obvious, but still).  Also, this last time caused major
  894. problems, screwing up my hard drive.  I had to re-install the system
  895. before I could use any of my files/applications again.  So I figured
  896. I'd best pass it along.
  897.  
  898. The problem has a consistent manifestation.  It only happens after
  899. I've interrupted my program's execution to check a falue or something
  900. in the debugger.  If I simply run the program via the debugger (but
  901. don't stop it at any point) this doesn't happen.
  902.  
  903. After I've done that, the program continues to work fine.  The problem
  904. only shows up *after* I've quit the program *and* the debugger.
  905.  
  906. Shortly thereafter all the colors for the menubar icons, icons,
  907. folders, etc get screwed up.  Usually I notice this when the menu
  908. bar's icons have turned into black blobs.  However it doesn't always
  909. happen on the *first* redraw of the menu (as far as I can tell).
  910.  
  911. It used to be that I could sometimes still run my program once or
  912. twice.  Now it consistently causes this problem and bombs the next
  913. time I try to enter the debugger.  Sometimes it even crashes when the
  914. think c program itself is running -- compiling or saving or suchlike.
  915.  
  916. What always happen, when it does crash, is that I get dumped into
  917. MacsBug -- usually when I've tried to launch the debugger a second
  918. time.  An "es" doesn't work; I just get dumped back into the debugger
  919. again.
  920.  
  921. This last time, es sent the hard drive whirring briefly before it
  922. dumped me back to MacsBug.  When I went to reboot, the Finder got as
  923. far as drawing the menu bar and desktop icons.  Then those
  924. disappeared, the arrow changed to a watch, the disk whirred, and it
  925. drew them again. That kept happening.
  926.  
  927. I tried rebuilding the desktop, to no avail.  Again, it got as far as
  928. the menus/icons, and started looping/whirring endlessly.
  929.  
  930. I was able to boot of a floppy, could see (and copy) all the files on
  931. the hard drive, however when I tried to start up any of the
  932. applications, it got as far as getting the application's name up in
  933. the center of the menubar before it froze.  This happened for every
  934. application I tried.  Also, it seemed to have lost track of think c,
  935. because when I 2ble-clicked on my project it said that it couldn't
  936. find the creator of that file.
  937.  
  938. Finally, I reinstalled the system software.  Only then could I
  939. successfully boot from the hard drive.
  940.  
  941. Like I said, this may well be my code; heck, my project is over 1000K
  942. so there're any *number* of places one could be hiding.  However this
  943. recent incident was so disasterous I thought I'd best pass it along in
  944. case (a) anyone recognizes this and can tell me what I'm screwing up,
  945. or (b) if it actually is symptomatic of something wrong w/ the think
  946. stuff, in which case whoever collects data on this kind of thing now
  947. has a little more info.
  948.  
  949. Happy hacking all!
  950. LP
  951.  
  952. -- 
  953.  
  954. Laurence A. Pittenger
  955. CSNET  : pittenger-laurence@cs.yale.edu
  956. BITNET : pitlaua@yalevm ,  pittenger-laurence@yalecs
  957.  
  958.  
  959.  
  960. - -------------------------
  961.  
  962. From: duga@merlin.cvs.rochester.edu (Brady Duga)
  963. Subject:  Think debugger BUG?
  964. Date: 11 Feb 92 13:33:13 GMT
  965. Organization: Center for Visual Science, U. of Rochester
  966.  
  967. In article <1992Feb10.221750.24433@cs.yale.edu> pittenger-laurence@CS.YALE.EDU (Laurence Arthur Pittenger) writes:
  968. >
  969. >After I've done that, the program continues to work fine.  The problem
  970. >only shows up *after* I've quit the program *and* the debugger.
  971. >
  972. >Shortly thereafter all the colors for the menubar icons, icons,
  973. >folders, etc get screwed up.  Usually I notice this when the menu
  974. >bar's icons have turned into black blobs.  However it doesn't always
  975. >happen on the *first* redraw of the menu (as far as I can tell).
  976. >
  977.  
  978. I've had similar problems. The screen colors were all wrong, and a peek at
  979. the monitors CDEV showed the first several colors to be a blend from white to
  980. black, which I thought odd since I wasn't using any interesting color code.
  981. After a few runs, the machine would eventually crash (I didn't have MacsBug
  982. loaded at the time, so the machine just froze). The problem was rare enough
  983. that I never tracked down the cause, and it has stopped altogether recently.
  984.  
  985. Anyone else with a similar experience?
  986.  
  987. --Brady (duga@cvs.rochester.edu)
  988.  
  989.  
  990.  
  991. - -------------------------
  992.  
  993. From: wombat@claris.com (Scott Lindsey)
  994. Subject:  Think debugger BUG?
  995. Date: 13 Feb 92 23:48:06 GMT
  996. Organization: Claris Corporation
  997.  
  998. In article <1992Feb11.133313.7884@galileo.cc.rochester.edu>, duga@merlin.cvs.rochester.edu (Brady Duga) writes:
  999. > In article <1992Feb10.221750.24433@cs.yale.edu> pittenger-laurence@CS.YALE.EDU (Laurence Arthur Pittenger) writes:
  1000. > >
  1001. > >After I've done that, the program continues to work fine.  The problem
  1002. > >only shows up *after* I've quit the program *and* the debugger.
  1003. > >
  1004. > >Shortly thereafter all the colors for the menubar icons, icons,
  1005. > >folders, etc get screwed up.  Usually I notice this when the menu
  1006. > >bar's icons have turned into black blobs.  However it doesn't always
  1007. > >happen on the *first* redraw of the menu (as far as I can tell).
  1008. > >
  1009. > Anyone else with a similar experience?
  1010.  
  1011. Yes, I've seen it also.  I reported it to Symantec in beta versions of Think C 5.0,
  1012. but it wasn't fixed.  It's hard to nail down to a specific user/programmer action.
  1013.  
  1014. --
  1015. Scott Lindsey <wombat@claris.com>
  1016.  
  1017.  
  1018.  
  1019. ---------------------------
  1020.  
  1021. From: peter@cujo.curtin.edu.au (Peter N Lewis)
  1022. Subject: WARNING: Bug in THINK Pascal 4.0.1
  1023. Date: 11 Feb 92 03:35:55 GMT
  1024. Organization: NCRPDA, Curtin University
  1025.  
  1026. Hi All,
  1027.  
  1028. When you upgrade to 4.0.1, be careful with code resources.  When it 
  1029. updates (compresses) the project, it also kindly turns on the 
  1030. "Custom Header" flag in the Project Type options.  This has the wholely 
  1031. pleasant effect of removing the jmp to your main code, and thus producing 
  1032. a resource that will simply go bang in a really helpful way when it gets 
  1033. called.
  1034.  
  1035. You have been warned (I have been burned),
  1036.    Peter.
  1037.  
  1038. ______________________________________________________________________
  1039. Peter N Lewis, NCRPDA, Curtin University      peter@cujo.curtin.edu.au
  1040. GPO Box U1987, Perth WA 6001, AUSTRALIA            FAX: +61 9 367 8141
  1041.  
  1042.  
  1043.  
  1044. - -------------------------
  1045.  
  1046. From: slang@bnr.ca (Steven Langlois)
  1047. Subject:  WARNING: Bug in THINK Pascal 4.0.1
  1048. Date: 11 Feb 92 13:06:23 GMT
  1049. Organization: Bell-Northern Research Ltd.
  1050.  
  1051. In article <1992Feb11.033555.28808@cujo.curtin.edu.au>, peter@cujo.curtin.edu.au (Peter N Lewis) writes:
  1052. |> When you upgrade to 4.0.1, be careful with code resources.  When it 
  1053. |> updates (compresses) the project, it also kindly turns on the 
  1054. |> "Custom Header" flag in the Project Type options.  This has the wholely 
  1055. |> pleasant effect of removing the jmp to your main code, and thus producing 
  1056. |> a resource that will simply go bang in a really helpful way when it gets 
  1057. |> called.
  1058. |> 
  1059.  
  1060. I tried this with several code resource projects and couldn't reproduce
  1061. this problem. Can you give any more details? I'm sure the people at
  1062. Symantec would be interested.
  1063.  
  1064. Steven Langlois
  1065. ISDN Basic Rate Access
  1066. Bell-Northern Research
  1067.  
  1068. Internet: slang@bnr.ca
  1069.  
  1070.  
  1071.  
  1072. ---------------------------
  1073.  
  1074. From: steve@oceania.com (Steve Dakin)
  1075. Subject: FILE *'s and Mac files
  1076. Date: 11 Feb 92 01:34:01 GMT
  1077. Organization: Oceania Health Care Systems
  1078.  
  1079.  
  1080. Using THINK C 5.0.x:
  1081.  
  1082. Is there a way to get a Mac file reference number from a FILE * that is used in  
  1083. standard C file I/O operations (e.g. fprintf) and vice versa?
  1084.  
  1085. All comments, suggestion, references, etc. appreciated.
  1086.  
  1087. -- 
  1088.     Steve Dakin      UIguy, company morale booster, Marillion worshipper
  1089.  steve@oceania.com        Oceania Health Care Systems, Palo Alto, CA
  1090.  jester@oceania.com                    (415) 322-0127
  1091.     (NeXT mail)            I'm not a doctor, I just work for them.
  1092.  
  1093.  
  1094.  
  1095. - -------------------------
  1096.  
  1097. From: phils@chaos.cs.brandeis.edu (Phil Shapiro)
  1098. Subject:  FILE *'s and Mac files
  1099. Date: 12 Feb 92 02:37:26 GMT
  1100. Organization: Symantec Corp.
  1101.  
  1102. In article <1992Feb11.013401.2564@oceania.com> steve@oceania.com (Steve Dakin) writes:
  1103.  
  1104.    Using THINK C 5.0.x:
  1105.  
  1106.    Is there a way to get a Mac file reference number from a FILE *
  1107.    that is used in standard C file I/O operations (e.g. fprintf) and
  1108.    vice versa?
  1109.  
  1110. In general, check out the FILE structure in the stdio.h header file.
  1111. The structure fields are pretty mnemonic -- of course, they can change
  1112. in a future release. Currently, you can use:
  1113.  
  1114.     FILE *fp;
  1115.     ...
  1116.     err = GetEOF(fp->refnum, &theEOF);   /* or whatever */
  1117.  
  1118. Also, you may want to look at the code for __open() in fopen.c.
  1119.  
  1120.     -phil
  1121. --
  1122.    Phil Shapiro                           Technical Support Analyst
  1123.    Language Products Group                     Symantec Corporation
  1124.         Internet: phils@chaos.cs.brandeis.edu
  1125.  
  1126.  
  1127.  
  1128. ---------------------------
  1129.  
  1130. From: Thad.Humphries@p950.f70.n109.z1.FidoNet.Org (Thad Humphries)
  1131. Subject: MPW: deleting resource fork
  1132. Date: 11 Feb 92 04:46:57 GMT
  1133.  
  1134.  
  1135.  JD> From: doner@aero.org (John Doner)
  1136.  JD> Newsgroups: comp.sys.mac.programmer
  1137.  JD> Organization: The Aerospace Corporation, El Segundo, CA
  1138.  JD> 
  1139.  JD> Can anyone tell me how to use MPW commands to delete just the
  1140.  JD> resource fork of a file?
  1141.  
  1142. Don't know that it can be done.  But here's some THINK C code to do it...
  1143.  
  1144. /* delete a fork.c
  1145.  *
  1146.  * This code shows how to delete the resource and data forks of a file.
  1147.  */
  1148.  
  1149. #include <ResourceMgr.h>
  1150. #include <FileMgr.h>
  1151. #include <stdio.h>
  1152.  
  1153. void main()
  1154. {
  1155.     int refNum, err;
  1156.     
  1157.     /* The next three lines are used to delete the resource fork.  They require 
  1158.      * you include ResourceMgr.h
  1159.      */
  1160.     refNum = OpenResFile("\pRENT-A-COMP:Misc ESSO:Junk:my_file");
  1161.     CloseResFile(refNum);    
  1162.     err = OpenRF("\pRENT-A-COMP:Misc ESSO:Junk:my_file", 0, &refNum);
  1163.  
  1164.  
  1165.     /* If you want to delete the data fork, the previous three lines and use the
  1166.      * FSOpen line below.  You need not include ResourceMgr.h
  1167.      */
  1168.      
  1169.     /* err = FSOpen("\pRENT-A-COMP:Applications:Microsoft Word 4.0", 0, &refNum); */
  1170.  
  1171.     if (err) {
  1172.         printf("Cannot open file, error %d.\n", err);
  1173.         return;
  1174.         }
  1175.         
  1176.     err = SetEOF(refNum, 0);
  1177.     if (err) {
  1178.         printf("Cannot set EOF, error %d.\n", err);
  1179.         return;
  1180.         }
  1181.         
  1182.     err = FSClose(refNum);
  1183.     if (err) {
  1184.         printf("Cannot close file, error %d.\n", err);
  1185.         return;
  1186.         }
  1187. }
  1188.  
  1189.  * Origin: Quis custodiet ipsos custodes? (1:109/70.950)
  1190.  
  1191.  
  1192.  
  1193. - -------------------------
  1194.  
  1195. From: nebel@wam.umd.edu (Chris D. Nebel)
  1196. Subject:  MPW: deleting resource fork
  1197. Organization: University of Maryland at College Park
  1198. Date: Tue, 11 Feb 1992 19:19:50 GMT
  1199.  
  1200. Try "rez -o file < Dev:Null".  Works for me.  Admittedly, what this
  1201. actually does is make the file have an empty resource fork, which is
  1202. a little different than making it have NO resource fork, but it will
  1203. still save you disk space.  This command relies on the fact that rez
  1204. initializes the resource fork of the target file before rezzing anything
  1205. into it (unless you specify -a); getting input from Dev:Null means that
  1206. nothing gets added, and voila! an empty resource fork.
  1207.  
  1208. Chris Nebel
  1209. nebel@wam.umd.edu
  1210.  
  1211.  
  1212.  
  1213. ---------------------------
  1214.  
  1215. From: costello@gandhi.cs.clemson.edu (E Gasparini)
  1216. Subject: Launching Applications
  1217. Organization: Clemson University Computer Science Dept.
  1218. Date: Tue, 11 Feb 1992 17:54:09 GMT
  1219.  
  1220.  
  1221. Hi,
  1222.  
  1223. I need to know how to create (text|binary) data files within a Symantec Think 
  1224. Pascal application, and be able to launch this application (not Think Pascal)
  1225. by 2-clicking on the data file. 
  1226.  
  1227. Please, be specific as my knowledge of the Mac OS is NIL (ok, 
  1228. close to that).
  1229.  
  1230. Reply by e-mail, or post here.
  1231.     Thanks
  1232. ================================
  1233. Elvis Gasparini
  1234. costello@cs.clemson.edu
  1235. Clemson University
  1236.  
  1237.  
  1238.  
  1239. - -------------------------
  1240.  
  1241. From: gluttony@reed.edu!gluttony.reed.edu!pcalahan (Patrick John Calahan)
  1242. Subject:  Launching Applications
  1243. Date: 13 Feb 92 07:25:35 GMT
  1244. Organization: Reed College, Portland, OR
  1245.  
  1246. In article <1992Feb11.175409.9114@hubcap.clemson.edu>  
  1247. costello@gandhi.cs.clemson.edu (E Gasparini) writes:
  1248. > Hi,
  1249. > I need to know how to create (text|binary) data files within a Symantec  
  1250. Think 
  1251. > Pascal application, and be able to launch this application (not Think  
  1252. Pascal)
  1253. > by 2-clicking on the data file. 
  1254. > Please, be specific as my knowledge of the Mac OS is NIL (ok, 
  1255. > close to that).
  1256. > Reply by e-mail, or post here.
  1257. >     Thanks
  1258. > ================================
  1259. > Elvis Gasparini
  1260. > costello@cs.clemson.edu
  1261. > Clemson University
  1262.  
  1263. Assuming I understand your question correctly...
  1264.     When you double click on a document file, the finder looks at its  
  1265. 'creator' field and searches for an APPLication of that type.  All you  
  1266. need to do is pass your application's resource-signature through the  
  1267. 'creator' parameter of whatever file i/o routines you are using, or  
  1268. perhaps this is handled automatically.
  1269.                 -Pat
  1270.  
  1271.  
  1272.  
  1273. ---------------------------
  1274.  
  1275. From: mlindholm@cc.helsinki.fi
  1276. Subject: GetMenu returning wrong ID?
  1277. Date: 11 Feb 92 18:17:23 GMT
  1278. Organization: University of Helsinki
  1279.  
  1280.  
  1281.     I would be very grateful if someone helped me a little:
  1282.      
  1283.     I am writing a small drawing application with 
  1284.     THINK C 5.0 using TCL.  I created a new MENU
  1285.     resource with ResEdit (2.1) and gave it an ID 20.
  1286.     Then I added the commands and their numbers and
  1287.     finally added the menu ID in the MBAR resource.
  1288.      
  1289.     When running the application my menu commands never 
  1290.     came through.  So I watched with the debugger, and 
  1291.     what did I see?  When the Bartender is initializing
  1292.     itself, it makes a call of GetMenu to every menu in 
  1293.     the MBAR resource.  According to IM I-419, the GetMenu
  1294.     is supposed to return the menu record of the menu, whose 
  1295.     ID is given as a parameter.  All the other menus come 
  1296.     out ok, but when my menu was called (with the ID 20),
  1297.     back came a menu record with an ID of 128.  
  1298.      
  1299.     This is of course the reason why the commands were never 
  1300.     sent, but how is this possible?  And what should I do now?
  1301.      
  1302.     Yours,
  1303.             Mikko Lindholm
  1304.             mlindholm@cc.helsinki.fi
  1305.             mlindhol@finuh.bitnet
  1306.  
  1307.  
  1308.  
  1309. - -------------------------
  1310.  
  1311. From: keith@Apple.COM (Keith Rollin)
  1312. Subject:  GetMenu returning wrong ID?
  1313. Date: 14 Feb 92 03:28:54 GMT
  1314. Organization: Apple Computer Inc., Cupertino, CA
  1315.  
  1316. In article <1992Feb11.201723.1@cc.helsinki.fi> mlindholm@cc.helsinki.fi writes:
  1317. >
  1318. >    I am writing a small drawing application with 
  1319. >    THINK C 5.0 using TCL.  I created a new MENU
  1320. >    resource with ResEdit (2.1) and gave it an ID 20.
  1321. >    Then I added the commands and their numbers and
  1322. >    finally added the menu ID in the MBAR resource.
  1323. >     
  1324. >    When running the application my menu commands never 
  1325. >    came through.  So I watched with the debugger, and 
  1326. >    what did I see?  When the Bartender is initializing
  1327. >    itself, it makes a call of GetMenu to every menu in 
  1328. >    the MBAR resource.  According to IM I-419, the GetMenu
  1329. >    is supposed to return the menu record of the menu, whose 
  1330. >    ID is given as a parameter.  All the other menus come 
  1331. >    out ok, but when my menu was called (with the ID 20),
  1332. >    back came a menu record with an ID of 128.  
  1333. >     
  1334. >    This is of course the reason why the commands were never 
  1335. >    sent, but how is this possible?  And what should I do now?
  1336.  
  1337. It is probable that you changed only the resource ID of the MENU, and
  1338. not the menu ID. Both must be changed in order for TCL's command
  1339. handling to work. To change the menu ID, open the MENU resource, go to
  1340. the MENU menu, and select Edit Menu and MDEF ID.
  1341.  
  1342. -- 
  1343. - ----------------------------------------------------------------------------
  1344. Keith Rollin           ---            <Taligent .signature under construction>
  1345. Disclaimer: Pretty soon, I really _won't_ be speaking for Apple...
  1346.  
  1347.  
  1348.  
  1349. ---------------------------
  1350.  
  1351. Subject: Resolving aliases for pref files etc
  1352. From: russells@ccu1.aukuni.ac.nz (Russell Street)
  1353. Date: Wed, 12 Feb 1992 02:10:01 GMT
  1354. Organization: University of Auckland, New Zealand.
  1355.  
  1356.  
  1357. Should one resolve aliases for preferences files, folders found by
  1358. FindFolder found etc?
  1359.  
  1360. The Finder does not, for instance do this, for instance if you
  1361. put an alias called "Finder Preferences" in the Prefs folder.
  1362. Should the rest of us bother?  It is a fairly perverse thing for
  1363. a user to do, but you never know what they will get up to.
  1364.  
  1365. Also does the System resolve aliases for folders found by FindFolder?
  1366. Again it is a silly thing for someone to do...
  1367.  
  1368. TIA
  1369. - -----------------------------------------------------------
  1370. Russell Street                     russells@ccu1.aukuni.ac.nz 
  1371. "Baldrick, I believe the phrase rhymes with 'clucking bell'."
  1372.         -- Edmund Blackadder
  1373.  
  1374.  
  1375.  
  1376. - -------------------------
  1377.  
  1378. From: kaufman@Xenon.Stanford.EDU (Marc T. Kaufman)
  1379. Subject:  Resolving aliases for pref files etc
  1380. Organization: CS Department, Stanford University, California, USA
  1381. Date: 12 Feb 92 04:29:19 GMT
  1382.  
  1383. russells@ccu1.aukuni.ac.nz (Russell Street) writes:
  1384.  
  1385. >Should one resolve aliases for preferences files, folders found by
  1386. >FindFolder found etc?
  1387.  
  1388. >The Finder does not, for instance do this, for instance if you
  1389. >put an alias called "Finder Preferences" in the Prefs folder.
  1390. >Should the rest of us bother?  It is a fairly perverse thing for
  1391. >a user to do, but you never know what they will get up to.
  1392.  
  1393. Under the principle of least astonishment, I believe you SHOULD resolve
  1394. aliases in the Preferences folder (and most anywhere else, too).  Your
  1395. recourse is to post an error, since you don't want TWO preference files with
  1396. the same name (one an alias and one not).  After all, for most applications
  1397. the preferences file is generated automatically on first launch, and the
  1398. only way an alias prefs file can get there is for someone to explicitly
  1399. put it there -- maybe he or she had a good reason.
  1400.  
  1401. Besides, it's as simple as: "ResolveAliasFile" (see IM-VI, p.9-30)
  1402.  
  1403. -- 
  1404. Marc Kaufman (kaufman@CS.Stanford.EDU)
  1405.  
  1406.  
  1407.  
  1408.  
  1409. ---------------------------
  1410.  
  1411. From: braun-eric@CS.YALE.EDU (Eric E. Braun)
  1412. Subject: finding a publisher
  1413. Date: 12 Feb 92 21:00:36 GMT
  1414. Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
  1415.  
  1416.  
  1417. Hi, I am just finishing up a new networking product and I'm looking
  1418. for a publisher.  Does any of you out there who have published
  1419. software before have any good sugestions for where to go looking (or
  1420. where to stay away from)?  Phone #s and address would be appreciated
  1421. and names of people to contact would best if possible.
  1422.  
  1423. If other folks are interested in this same info drop me a note and if
  1424. there are enough of you I'll post a summary of what I get (else I'll
  1425. just mail it out).
  1426.  
  1427. Thanks in advance (as usual)..
  1428.  
  1429. Eric
  1430.  
  1431.  
  1432.  
  1433. - -------------------------
  1434.  
  1435. From: rla20@duts.ccc.amdahl.com (Roger Allen)
  1436. Subject:  finding a publisher
  1437. Date: 12 Feb 92 23:59:55 GMT
  1438. Organization: Amdahl Corporation, Sunnyvale CA
  1439.  
  1440. In article <1992Feb12.210036.25158@cs.yale.edu> braun-eric@CS.YALE.EDU (Eric E. Braun) writes:
  1441. >
  1442. >Hi, I am just finishing up a new networking product and I'm looking
  1443. >for a publisher.  Does any of you out there who have published
  1444. >software before have any good sugestions for where to go looking (or
  1445. >where to stay away from)?  Phone #s and address would be appreciated
  1446. >and names of people to contact would best if possible.
  1447. >
  1448. >If other folks are interested in this same info drop me a note and if
  1449. >there are enough of you I'll post a summary of what I get (else I'll
  1450. >just mail it out).
  1451. >
  1452. >Thanks in advance (as usual)..
  1453. >
  1454. >Eric
  1455.  
  1456. I would certainly like to hear other people's stories of how they got
  1457. their product to market.  It seems we have plenty of advice on how
  1458. to get our programs to work--but, after you get your program done you
  1459. are on your own!
  1460.  
  1461. I know "in general" what to do, so I'm not too interested in the
  1462. standard "write to a publisher and wait for a reply..."  This leaves
  1463. ALOT unanswered.  For instance--how do you negotiate your fee/royalty--
  1464. this is probably something that it would be nice to know ballpark
  1465. figures beforehand.  Another for instance--after you sold your program
  1466. to a publisher did you find out about a better deal you had overlooked?
  1467. or maybe see that going it alone would have been better? Etc, etc, etc.
  1468.  
  1469. C'mon Mac programming gurus! Let's hear how you got rich! (or not)
  1470.  
  1471. Roger.
  1472. --
  1473. > Roger Allen                   |  The preceding message was written     <
  1474. > Amdahl Computer Development   |  by 100 monkeys typing for 100 years.  <
  1475. > rla20@cd.amdahl.com           |  I am not responsible for the monkeys. <
  1476.  
  1477.  
  1478.  
  1479. ---------------------------
  1480.  
  1481. End of C.S.M.P. Digest
  1482. **********************
  1483.